/**
 * Created by wolfMan on 2025/07/11.
 */

export default {
  data () {
    return {
    };
  },
  filters: {
    // 字典显示转换
    filterDict (stateVal, dictData = []) {
      let _back = stateVal;
      if (dictData) {
        for (let item of dictData) {
          if (stateVal !== null && stateVal !== undefined && item.value.toString() === stateVal.toString()) {
            _back = item.label;
            break;
          };
        };
      };
      return _back;
    }
  },
  methods: {
  }
};